class CreateContentRaws < ActiveRecord::Migration
  def self.up
    create_table :content_raws do |t|
      t.integer   :content_type_id
      t.integer   :refers_to, :default => nil
      t.integer   :creation_user
      t.datetime   :creation_date,  :default => Time.now
      t.datetime   :release_date
      t.datetime   :expiration_time
      t.string     :mime_type
      t.integer    :category_id 
      
      t.timestamps
    end
  end

  def self.down
    drop_table :content_raws
  end
end
